package com.zhonghui.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhonghui.wms.mapper.WmsReplenishmentApplicationMapper;
import com.zhonghui.wms.domain.WmsReplenishmentApplication;
import com.zhonghui.wms.service.IWmsReplenishmentApplicationService;

/**
 * 智能仓储WMS-补货申请Service业务层处理
 * 
 * @author qiezi
 * @date 2023-12-18
 */
@Service
public class WmsReplenishmentApplicationServiceImpl implements IWmsReplenishmentApplicationService 
{
    @Autowired
    private WmsReplenishmentApplicationMapper wmsReplenishmentApplicationMapper;

    /**
     * 查询智能仓储WMS-补货申请
     * 
     * @param id 智能仓储WMS-补货申请主键
     * @return 智能仓储WMS-补货申请
     */
    @Override
    public WmsReplenishmentApplication selectWmsReplenishmentApplicationById(String id)
    {
        return wmsReplenishmentApplicationMapper.selectWmsReplenishmentApplicationById(id);
    }

    /**
     * 查询智能仓储WMS-补货申请列表
     * 
     * @param wmsReplenishmentApplication 智能仓储WMS-补货申请
     * @return 智能仓储WMS-补货申请
     */
    @Override
    public List<WmsReplenishmentApplication> selectWmsReplenishmentApplicationList(WmsReplenishmentApplication wmsReplenishmentApplication)
    {
        return wmsReplenishmentApplicationMapper.selectWmsReplenishmentApplicationList(wmsReplenishmentApplication);
    }

    /**
     * 新增智能仓储WMS-补货申请
     * 
     * @param wmsReplenishmentApplication 智能仓储WMS-补货申请
     * @return 结果
     */
    @Override
    public int insertWmsReplenishmentApplication(WmsReplenishmentApplication wmsReplenishmentApplication)
    {
        return wmsReplenishmentApplicationMapper.insertWmsReplenishmentApplication(wmsReplenishmentApplication);
    }

    /**
     * 修改智能仓储WMS-补货申请
     * 
     * @param wmsReplenishmentApplication 智能仓储WMS-补货申请
     * @return 结果
     */
    @Override
    public int updateWmsReplenishmentApplication(WmsReplenishmentApplication wmsReplenishmentApplication)
    {
        return wmsReplenishmentApplicationMapper.updateWmsReplenishmentApplication(wmsReplenishmentApplication);
    }

    /**
     * 批量删除智能仓储WMS-补货申请
     * 
     * @param ids 需要删除的智能仓储WMS-补货申请主键
     * @return 结果
     */
    @Override
    public int deleteWmsReplenishmentApplicationByIds(String[] ids)
    {
        return wmsReplenishmentApplicationMapper.deleteWmsReplenishmentApplicationByIds(ids);
    }

    /**
     * 删除智能仓储WMS-补货申请信息
     * 
     * @param id 智能仓储WMS-补货申请主键
     * @return 结果
     */
    @Override
    public int deleteWmsReplenishmentApplicationById(String id)
    {
        return wmsReplenishmentApplicationMapper.deleteWmsReplenishmentApplicationById(id);
    }
}
